#version 330 core

out vec4 FragColor;

uniform vec3 object_color;
uniform vec3 world_light_color;
uniform int object_type;

void main() {
    if (object_type == 0) {
        FragColor = vec4(world_light_color, 1.0);
    } else {
        vec3 am_color = vec3(world_light_color * object_color);
        FragColor = vec4(am_color * 0.2, 1.0);
    }
}
